//
//  ZXLSignData.h
//  SignSecurityDemo
//
//  Created by zxl02 on 2020/9/16.
//  Copyright © 2020 CordovaDemo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZXLSecurityEnum.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZXLSignData : NSObject
@property(nonatomic,assign)SecuritySceneServiceType serviceType;//服务场景
@property(nonatomic,assign)SecurityEncryptType encryptType;//加密方式

@property(nonatomic,copy)NSString * tenant;
@property(nonatomic,copy)NSString * token;
@property(nonatomic,copy)NSString * version;
@property(nonatomic,copy)NSString * platform;

@property(nonatomic,copy)NSString * StringToSign;
//解密
@property(nonatomic,copy)NSString * decryptionStr;

//
@property(nonatomic,copy)NSString * nonce;
@property(nonatomic,copy)NSString * timestamp;
@end


@interface ZXLAPISignData : ZXLSignData
@property(nonatomic,copy)NSString * requestType;
//@property(nonatomic,copy)NSString * URL;
@property(nonatomic,copy)NSString * uri;
@property(nonatomic,copy)NSString * queryString;
@property(nonatomic,copy)NSString * body;
//@property(nonatomic,strong)NSDictionary * parameters;
@property(nonatomic,copy)NSString * headers;

-(NSString*)getAPIStrToSigin;

@end



@interface SignResult : NSObject
@property(nonatomic,assign)NSInteger successCode;
@property(nonatomic,assign)NSTimeInterval time;
@property(nonatomic,copy)NSString * signResultStr;
@property(nonatomic,copy)NSString * decryptionResultStr;

@property(nonatomic,copy)NSString * msg;

@end
NS_ASSUME_NONNULL_END
